using System.Collections;
using Sirenix.OdinInspector;
using UnityEngine;
using Pangoo.Common;
using Pangoo.MetaTable;
using Pangoo.Core.VisualScripting;

namespace CardCombine
{

    [CreateAssetMenu(fileName = "CardConfig", menuName = "CardCombine/Config", order = 0)]
    public class CardConfig : GameConfigBase
    {

        [LabelText("卡牌拥有变量 Uuid")]
        [ValueDropdown("GetBoolVariableUuid")]
        [TitleGroup("变量")]

        public string CardHasVariable = string.Empty;

        [LabelText("卡牌移除变量 Uuid")]
        [ValueDropdown("GetBoolVariableUuid")]
        [TitleGroup("变量")]
        public string CardRemovedVariable = string.Empty;


#if UNITY_EDITOR
        private IEnumerable GetBoolVariableUuid()
        {
            return VariablesOverviewExtension.GetVariableUuidDropdown(VariableValueTypeEnum.Bool.ToString());
        }

#endif

        [LabelText("UI Uuid")]
        [ValueDropdown("@SimpleUIOverview.GetUuidDropdown()")]
        [TitleGroup("UI")]
        public string CardPanelUuid = string.Empty;

    }
}